<link rel="stylesheet" href="/js/vendor/bootstrap/css/bootstrap.min.css" />


<div>
	<div>系统配置</div>
</div>
<form id="form_search" action="/Cnf/cnf" method="get">
	<span>类型：
		<input type="text" id="type" name="type" placeholder="模糊搜索" />
	</span>
    <span>键：
		<input type="text" id="k" name="k" placeholder="模糊搜索" />
	</span>
    <span>值：
		<input type="text" id="v" name="v" placeholder="模糊搜索" />
	</span>

	<div style="padding-top: 10px">
        <span>创建时间：<input type="text" id="begin_create_at" name="begin_create_at" value="" /></span>
        <span>至：<input type="text" id="end_create_at" name="end_create_at" value="" /></span>
	</div>
	<div style="padding-top: 10px">
        <span>更新时间：<input type="text" id="begin_update_at" name="begin_update_at" value="" /></span>
        <span>至：<input type="text" id="end_update_at" name="end_update_at" value="" /></span>
	</div>
	<div style="padding-top: 10px">
		<button type="submit">搜索</button>
    </div>
</form>
<div style="padding-top: 30px"></div>

<form>
	<div style="float: right">
		<span style="padding-right: 10px;">
			<button type="button" id="btn_addCnf">添加</button>
		</span>
		<span style="padding-right: 10px;">
			<button type="button" id="btn_batchAddCnf">批量添加</button>
		</span>
		<span style="padding-right: 10px;">
			<button type="button" id="btn_batchEditCnf">批量修改</button>
		</span>
		<span style="padding-right: 10px;">
			<button type="button" id="btn_batchDelCnf">批量删除</button>
		</span>
	</div>
	<div style="padding-top:25px;">
		<table width="100%">
			<tr align="center">
				<td><input type="checkbox" id="allCnf" name="allCnf" value="" />全选</td>
				<td>类型</td>
				<td>键</td>
				<td>值</td>
				<td>排序</td>
				<td>备注</td>
				<td>是否有效</td>
				<td>创建时间</td>
				<td>更新时间</td>
				<td>操作</td>
			</tr>
			@foreach($cnf_list as $cnf)
				<tr align="center">
					<td><input type="checkbox" name="cnf[]" value="{{$cnf->id}}" /></td>
					<td>{{$cnf->type}}</td>
					<td>{{$cnf->k}}</td>
					<td>{{$cnf->v}}</td>
					<td>{{$cnf->idx}}</td>
					<td>{{$cnf->remark}}</td>
					<td>{{$cnf->enable}}</td>
					<td>{{date('Y-m-d H:i:s', $cnf->create_at)}}</td>
					<td>{{date('Y-m-d H:i:s', $cnf->update_at)}}</td>
					<td>
						<span style="padding-right: 10px;">
							<button type="button" name="edit" value="{{$cnf->id}}" >修改</button>
						</span>
						<span><button type="button" name="del" value="{{$cnf->id}}">删除</button></span>
					</td>
				</tr>
			@endforeach
		</table>
	</div>
</form>
<div>页码：{{$cnf_page}}/{{$cnf_total_page}}，总记录：<span>{{$cnf_cnt}}</span></div>
<div align="center">{!! $cnf_pager !!}</div>


<script src="/js/vendor/jquery/jquery.min.js"></script>
<script src="/js/vendor/My97DatePicker/WdatePicker.js"></script>
<script src="/js/vendor/layer/layer.js"></script>
<script type="text/javascript">
	var param = {!!$param!!};
</script>
<script src="/js/Cnf/cnf.js"></script>